#!/bin/sh
echo ------------------------------------------------------------
echo JSpider startup script
JSPIDER_HOME=/home/kqy/workspaces/jk_spider_2.1-light
echo JSPIDER_HOME=$JSPIDER_HOME
echo ------------------------------------------------------------

export JSPIDER_OPTS=
export JSPIDER_OPTS="$JSPIDER_OPTS -Djspider.home=$JSPIDER_HOME"
export JSPIDER_OPTS="$JSPIDER_OPTS -Djava.util.logging.config.file=$JSPIDER_HOME/common/conf/logging/logging.properties"
export JSPIDER_OPTS="$JSPIDER_OPTS -Dlog4j.configuration=bin/log4j.properties"

export JSPIDER_CLASSPATH=
export JSPIDER_CLASSPATH="$JSPIDER_HOME/lib/activation.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/commons-beanutils-1.8.0.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/commons-collections-3.2.1.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/commons-dbcp-1.2.2.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/commons-dbutils-1.3.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/commons-logging-1.1.1.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/commons-pool-1.4.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/dom4j-1.6.1.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/hsqldb.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/jxl.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/log4j-1.2.15.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/mail.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/ojdbc14.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/selenium-java-client-driver.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/selenium-server.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$JSPIDER_HOME/lib/jk_spider.jar"
export JSPIDER_CLASSPATH="$JSPIDER_CLASSPATH:$CLASSPATH"

echo ----------------------------------------------------------
echo $JSPIDER_CLASSPATH:$CLASSPATH
java -Xms512m -Xmx1024m -cp  $JSPIDER_CLASSPATH:$CLASSPATH jk.spider.JK_Spider_Run yihaodian yihaodian /home/kqy/workspaces/jk_spider_2.1-light
 
